//
//  BlockTool.h
//  block的使用总结
//
//  Created by 唐斌 on 2018/6/22.
//  Copyright © 2018年 曦胜科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BlockTool : NSObject

//1.定义无返回值,有一个字符串参数的名为foodBlock的block类型
typedef void(^ToolBlock)(NSString* food);

@property(nonatomic,strong)ToolBlock aBlock;

-(void)eat:(ToolBlock)block;

-(void)play:(void(^)(NSString* food))block;
@end
